package com.wyzz.hr.util.tags;

import com.opensymphony.xwork2.util.ValueStack;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.components.UIBean;

public class OrgselectorComp extends UIBean {

	public OrgselectorComp(ValueStack stack, HttpServletRequest request,
			HttpServletResponse response) {
		super(stack, request, response);
	}

	protected String getDefaultTemplate() {
		return "orgselector";
	}

	protected void evaluateExtraParams() {
		super.evaluateExtraParams();
		if (hiddenFieldName != null) {
			addParameter("hiddenFieldName", findString(hiddenFieldName));
			addParameter("hiddenFieldNameValue", findValue(hiddenFieldName));
		}
		if (isShowDisable != null)
			addParameter("isShowDisable", findString(isShowDisable));
		else
			addParameter("isShowDisable", "hide");
		if (isShowPb != null)
			addParameter("isShowPb", findString(isShowPb));
		else
			addParameter("isShowPb", "show");
		if (isShowCheckBox != null)
			addParameter("isShowCheckBox", findString(isShowCheckBox));
		else
			addParameter("isShowCheckBox", "show");
	}

	public String getIsShowDisable() {
		return isShowDisable;
	}

	public void setIsShowDisable(String isShowDisable) {
		this.isShowDisable = isShowDisable;
	}

	public String getIsShowPb() {
		return isShowPb;
	}

	public void setIsShowPb(String isShowPb) {
		this.isShowPb = isShowPb;
	}

	public String getHiddenFieldName() {
		return hiddenFieldName;
	}

	public void setHiddenFieldName(String hiddenFieldName) {
		this.hiddenFieldName = hiddenFieldName;
	}

	public String getIsShowCheckBox() {
		return isShowCheckBox;
	}

	public void setIsShowCheckBox(String isShowCheckBox) {
		this.isShowCheckBox = isShowCheckBox;
	}

	public final String TEMPLATE = "orgselector";
	private String hiddenFieldName;
	private String isShowDisable;
	private String isShowPb;
	private String isShowCheckBox;
}
